package unversioned;

public class Point {

    public int x = 0;
    public int y = 0;

    public int getX() {
        return x;
    }

    public int getY() {
        return y;
    }

    public Point set(int x, int y) {
        x = x;
        y = y;
        return this;
    }

    public void increase() {
        x = x + 1;
    }

    public static void main(String[] args) {
        int x = 10;
        int y = 10;
        Point p = new Point();
        p.set(x, y).increase();
        x = p.getX();
        System.out.println(x);
    }
}